package com.bawei.mall.search.service;

import com.bawei.common.core.domain.R;
import com.bawei.mall.product.domain.MallProductInfo;
import com.bawei.mall.search.domain.request.SearchReq;
import com.github.pagehelper.PageInfo;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * @author DongZl
 * @description: 搜索业务层
 * @Date 2022-10-21 下午 02:52
 */
public interface SearchService {

    /**
     * 通过商品ID同步商品信息
     * @param productId
     */
    public void syncProductInfo(Long productId);

    R<MallProductInfo> search (SearchReq searchReq);

    R querySuggestions(String indexName, String keyWord, String suggestFiled);

}
